﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using RMM.Core.Entity.Areas;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RMM.Areas.Dtos
{
    [AutoMap(typeof(AreaCity))]
    public class ProvDto : EntityDto<int>
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 父id
        /// </summary>
        public int ParentID { get; set; }

        /// <summary>
        /// 市
        /// </summary>
        public List<CityDto> Citys { get; set; }
    }

    [AutoMap(typeof(AreaCity))]
    public class CityDto : EntityDto<int>
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        public string ShortName { get; set; }

        /// <summary>
        /// 父id
        /// </summary>
        public int ParentID { get; set; }

        /// <summary>
        /// 拼音
        /// </summary>
        public string PinYin { get; set; }
    }
}
